package com.org.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author cjx
 * @since 2024-03-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("community_message")
@ApiModel(value="CommunityMessage对象", description="")
public class CommunityMessage implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "留言板id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "留言标题")
    private String title;

    @ApiModelProperty(value = "留言内容")
    private String content;

    @ApiModelProperty(value = "留言用户的id")
    private Integer userId;

    @ApiModelProperty(value = "给社区id留言")
    private Integer communityId;

    @ApiModelProperty(value = "留言的时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "0普通留言 1给社区的提议，但是还没有被处理 2给社区的提议，并且已经被管理员处理了")
    private Integer type;

    @TableField(exist = false)
    private String name;

    @TableField(exist = false)
    private String userAvatar;


}
